Release 10.1A: OpenEdge Data Management:
SQL Reference
QUARTER
Returns the quarter in the year specified by the argument as a short integer value in the range of 1–4.
Syntax
Example
In this example, which illustrates the
QUARTERfunction, the query requests all rows in the orders table where theorder_dateis in the third quarter of the year:
Notes
- The argument to the function must be of type
DATE.- If
date_expressionis supplied as a date literal, it can be any of the validdate_literalformats where the day specification (DD) precedes the month specification (MM).- The result is of type
SHORT.- If the argument expression evaluates to
NULL, the result isNULL.Compatibility
ODBC compatible
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |